home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1994 / MacHack 1994.toast / MacHack™ 1987-1994 / MacHack™ '90 / Source Code ƒ.sea / Source Code ƒ / TLC&TLP1.01aƒ / tlccmd.c < prev    next >
MacBinary  |  1990-01-28  |  9.8 KB  |  [TEXT/MPS ]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Sun Jan 28 07:36:24 1990, modified Sun Jan 28 07:36:24 1990, creator 'MPS ', type ASCII, 9453 bytes "tlccmd.c" , at 0x256d 382 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPS ]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 08 74 6c 63 63 6d 64 | 2e 63 00 00 00 00 00 00 |..tlccmd|.c......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 01 00 00 78 00 00 00 |.TEXTMPS| ...x...|
|00000050| 00 00 00 00 00 24 ed 00 | 00 01 7e a1 e8 97 c8 a1 |.....$..|..~.....|
|00000060| e8 97 c8 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 d2 db 00 00 |........|........|
|00000080| 09 09 09 6d 68 2e 6d 5f | 72 73 72 63 6c 65 6e 20 |...mh.m_|rsrclen |
|00000090| 3d 20 6d 61 6b 65 5f 66 | 69 6c 65 28 66 69 6c 65 |= make_f|ile(file|
|000000a0| 73 2e 66 5f 72 73 72 63 | 2c 20 63 6f 6d 70 72 65 |s.f_rsrc|, compre|
|000000b0| 73 73 65 64 29 3b 0d 09 | 09 09 66 6f 72 6b 73 2b |ssed);..|..forks+|
|000000c0| 2b 3b 0d 09 09 09 63 6f | 6e 74 69 6e 75 65 3b 0d |+;....co|ntinue;.|
|000000d0| 09 09 7d 0d 09 09 69 66 | 20 28 63 6f 6d 70 72 65 |..}...if| (compre|
|000000e0| 73 73 65 64 20 26 26 20 | 73 74 72 6e 63 6d 70 28 |ssed && |strncmp(|
|000000f0| 69 62 75 66 2c 20 22 2a | 2a 2a 43 52 43 3a 22 2c |ibuf, "*|**CRC:",|
|00000100| 20 37 29 20 3d 3d 20 30 | 29 20 7b 0d 09 09 09 66 | 7) == 0|) {....f|
|00000110| 6f 75 6e 64 5f 63 72 63 | 2b 2b 3b 0d 09 09 09 63 |ound_crc|++;....c|
|00000120| 61 6c 63 5f 63 72 63 20 | 3d 20 63 72 63 3b 0d 09 |alc_crc |= crc;..|
|00000130| 09 09 73 73 63 61 6e 66 | 28 26 69 62 75 66 5b 37 |..sscanf|(&ibuf[7|
|00000140| 5d 2c 20 22 25 78 22 2c | 20 26 66 69 6c 65 5f 63 |], "%x",| &file_c|
|00000150| 72 63 29 3b 0d 09 09 09 | 62 72 65 61 6b 3b 0d 09 |rc);....|break;..|
|00000160| 09 7d 0d 09 09 69 66 20 | 28 21 63 6f 6d 70 72 65 |.}...if |(!compre|
|00000170| 73 73 65 64 20 26 26 20 | 73 74 72 6e 63 6d 70 28 |ssed && |strncmp(|
|00000180| 69 62 75 66 2c 20 22 2a | 2a 2a 43 48 45 43 4b 53 |ibuf, "*|**CHECKS|
|00000190| 55 4d 3a 22 2c 20 31 32 | 29 20 3d 3d 20 30 29 20 |UM:", 12|) == 0) |
|000001a0| 7b 0d 09 09 09 66 6f 75 | 6e 64 5f 63 72 63 2b 2b |{....fou|nd_crc++|
|000001b0| 3b 0d 09 09 09 63 61 6c | 63 5f 63 72 63 20 3d 20 |;....cal|c_crc = |
|000001c0| 63 72 63 20 26 20 42 59 | 54 45 4d 41 53 4b 3b 0d |crc & BY|TEMASK;.|
|000001d0| 09 09 09 73 73 63 61 6e | 66 28 26 69 62 75 66 5b |...sscan|f(&ibuf[|
|000001e0| 31 32 5d 2c 20 22 25 78 | 22 2c 20 26 66 69 6c 65 |12], "%x|", &file|
|000001f0| 5f 63 72 63 29 3b 0d 09 | 09 09 66 69 6c 65 5f 63 |_crc);..|..file_c|
|00000200| 72 63 20 26 3d 20 42 59 | 54 45 4d 41 53 4b 3b 0d |rc &= BY|TEMASK;.|
|00000210| 09 09 09 62 72 65 61 6b | 3b 0d 09 09 7d 0d 09 7d |...break|;...}..}|
|00000220| 0d 0d 09 69 66 20 28 66 | 6f 75 6e 64 5f 63 72 63 |...if (f|ound_crc|
|00000230| 29 0d 09 09 76 65 72 69 | 66 79 5f 63 72 63 28 63 |)...veri|fy_crc(c|
|00000240| 61 6c 63 5f 63 72 63 2c | 20 66 69 6c 65 5f 63 72 |alc_crc,| file_cr|
|00000250| 63 29 3b 0d 09 65 6c 73 | 65 20 7b 0d 09 09 66 70 |c);..els|e {...fp|
|00000260| 72 69 6e 74 66 28 73 74 | 64 65 72 72 2c 20 22 6d |rintf(st|derr, "m|
|00000270| 69 73 73 69 6e 67 20 43 | 52 43 5c 6e 22 29 3b 0d |issing C|RC\n");.|
|00000280| 09 09 65 78 69 74 28 33 | 29 3b 0d 09 7d 0d 7d 0d |..exit(3|);..}.}.|
|00000290| 0d 6c 6f 6e 67 0d 6d 61 | 6b 65 5f 66 69 6c 65 28 |.long.ma|ke_file(|
|000002a0| 66 6e 61 6d 65 2c 20 63 | 6f 6d 70 72 65 73 73 65 |fname, c|ompresse|
|000002b0| 64 29 0d 63 68 61 72 20 | 2a 66 6e 61 6d 65 3b 0d |d).char |*fname;.|
|000002c0| 69 6e 74 20 63 6f 6d 70 | 72 65 73 73 65 64 3b 0d |int comp|ressed;.|
|000002d0| 7b 0d 09 63 68 61 72 20 | 69 62 75 66 5b 42 55 46 |{..char |ibuf[BUF|
|000002e0| 53 49 5a 5d 3b 0d 09 46 | 49 4c 45 20 2a 6f 75 74 |SIZ];..F|ILE *out|
|000002f0| 66 3b 0d 09 72 65 67 69 | 73 74 65 72 20 6c 6f 6e |f;..regi|ster lon|
|00000300| 67 20 6e 62 79 74 65 73 | 20 3d 20 30 4c 3b 0d 0d |g nbytes| = 0L;..|
|00000310| 09 6f 75 74 66 20 3d 20 | 66 6f 70 65 6e 28 66 6e |.outf = |fopen(fn|
|00000320| 61 6d 65 2c 20 22 77 22 | 29 3b 0d 09 69 66 20 28 |ame, "w"|);..if (|
|00000330| 6f 75 74 66 20 3d 3d 20 | 4e 55 4c 4c 29 20 7b 0d |outf == |NULL) {.|
|00000340| 09 09 70 65 72 72 6f 72 | 28 66 6e 61 6d 65 29 3b |..perror|(fname);|
|00000350| 0d 09 09 65 78 69 74 28 | 2d 31 29 3b 0d 09 7d 0d |...exit(|-1);..}.|
|00000360| 0d 09 77 68 69 6c 65 20 | 28 66 67 65 74 73 28 69 |..while |(fgets(i|
|00000370| 62 75 66 2c 20 42 55 46 | 53 49 5a 2c 20 69 66 70 |buf, BUF|SIZ, ifp|
|00000380| 29 20 21 3d 20 4e 55 4c | 4c 29 20 7b 0d 09 09 69 |) != NUL|L) {...i|
|00000390| 66 20 28 73 74 72 6e 63 | 6d 70 28 69 62 75 66 2c |f (strnc|mp(ibuf,|
|000003a0| 20 22 2a 2a 2a 45 4e 44 | 22 2c 20 36 29 20 3d 3d | "***END|", 6) ==|
|000003b0| 20 30 29 0d 09 09 09 62 | 72 65 61 6b 3b 0d 09 09 | 0)....b|reak;...|
|000003c0| 69 66 20 28 63 6f 6d 70 | 72 65 73 73 65 64 29 0d |if (comp|ressed).|
|000003d0| 09 09 09 6e 62 79 74 65 | 73 20 2b 3d 20 63 6f 6d |...nbyte|s += com|
|000003e0| 70 5f 74 6f 5f 62 69 6e | 28 69 62 75 66 2c 20 6f |p_to_bin|(ibuf, o|
|000003f0| 75 74 66 29 3b 0d 09 09 | 65 6c 73 65 0d 09 09 09 |utf);...|else....|
|00000400| 6e 62 79 74 65 73 20 2b | 3d 20 68 65 78 5f 74 6f |nbytes +|= hex_to|
|00000410| 5f 62 69 6e 28 69 62 75 | 66 2c 20 6f 75 74 66 29 |_bin(ibu|f, outf)|
|00000420| 3b 0d 09 7d 0d 0d 09 66 | 63 6c 6f 73 65 28 6f 75 |;..}...f|close(ou|
|00000430| 74 66 29 3b 0d 09 72 65 | 74 75 72 6e 20 6e 62 79 |tf);..re|turn nby|
|00000440| 74 65 73 3b 0d 7d 0d 0d | 63 6f 6d 70 5f 63 5f 63 |tes;.}..|comp_c_c|
|00000450| 72 63 28 63 29 0d 75 6e | 73 69 67 6e 65 64 20 63 |rc(c).un|signed c|
|00000460| 68 61 72 20 63 3b 0d 7b | 0d 09 63 72 63 20 3d 20 |har c;.{|..crc = |
|00000470| 28 63 72 63 20 2b 20 63 | 29 20 26 20 57 4f 52 44 |(crc + c|) & WORD|
|00000480| 4d 41 53 4b 3b 0d 09 63 | 72 63 20 3d 20 28 28 63 |MASK;..c|rc = ((c|
|00000490| 72 63 20 3c 3c 20 33 29 | 20 26 20 57 4f 52 44 4d |rc << 3)| & WORDM|
|000004a0| 41 53 4b 29 20 7c 20 28 | 63 72 63 20 3e 3e 20 31 |ASK) | (|crc >> 1|
|000004b0| 33 29 3b 0d 7d 0d 0d 63 | 6f 6d 70 5f 65 5f 63 72 |3);.}..c|omp_e_cr|
|000004c0| 63 28 63 29 0d 75 6e 73 | 69 67 6e 65 64 20 63 68 |c(c).uns|igned ch|
|000004d0| 61 72 20 63 3b 0d 7b 0d | 09 63 72 63 20 2b 3d 20 |ar c;.{.|.crc += |
|000004e0| 63 3b 0d 7d 0d 0d 23 64 | 65 66 69 6e 65 20 53 49 |c;.}..#d|efine SI|
|000004f0| 58 42 28 63 29 20 28 28 | 28 63 29 2d 30 78 32 30 |XB(c) ((|(c)-0x20|
|00000500| 29 20 26 20 30 78 33 66 | 29 0d 0d 63 6f 6d 70 5f |) & 0x3f|)..comp_|
|00000510| 74 6f 5f 62 69 6e 28 69 | 62 75 66 2c 20 6f 75 74 |to_bin(i|buf, out|
|00000520| 66 29 0d 63 68 61 72 20 | 69 62 75 66 5b 5d 3b 0d |f).char |ibuf[];.|
|00000530| 46 49 4c 45 20 2a 6f 75 | 74 66 3b 0d 7b 0d 09 63 |FILE *ou|tf;.{..c|
|00000540| 68 61 72 20 6f 62 75 66 | 5b 42 55 46 53 49 5a 5d |har obuf|[BUFSIZ]|
|00000550| 3b 0d 09 72 65 67 69 73 | 74 65 72 20 63 68 61 72 |;..regis|ter char|
|00000560| 20 2a 69 70 20 3d 20 69 | 62 75 66 3b 0d 09 72 65 | *ip = i|buf;..re|
|00000570| 67 69 73 74 65 72 20 63 | 68 61 72 20 2a 6f 70 20 |gister c|har *op |
|00000580| 3d 20 6f 62 75 66 3b 0d | 09 72 65 67 69 73 74 65 |= obuf;.|.registe|
|00000590| 72 20 69 6e 74 20 6e 2c | 20 6f 75 74 63 6f 75 6e |r int n,| outcoun|
|000005a0| 74 3b 0d 09 69 6e 74 20 | 6e 75 6d 72 65 61 64 2c |t;..int |numread,|
|000005b0| 20 69 6e 63 6f 75 6e 74 | 3b 0d 0d 09 6e 75 6d 72 | incount|;...numr|
|000005c0| 65 61 64 20 3d 20 73 74 | 72 6c 65 6e 28 69 62 75 |ead = st|rlen(ibu|
|000005d0| 66 29 3b 0d 09 69 70 5b | 6e 75 6d 72 65 61 64 2d |f);..ip[|numread-|
|000005e0| 31 5d 20 3d 20 27 20 27 | 3b 09 09 2f 2a 20 7a 61 |1] = ' '|;../* za|
|000005f0| 70 20 6f 75 74 20 74 68 | 65 20 6e 65 77 6c 69 6e |p out th|e newlin|
|00000600| 65 20 2a 2f 0d 09 6f 75 | 74 63 6f 75 6e 74 20 3d |e */..ou|tcount =|
|00000610| 20 28 53 49 58 42 28 69 | 70 5b 30 5d 29 20 3c 3c | (SIXB(i|p[0]) <<|
|00000620| 20 32 29 20 7c 20 28 53 | 49 58 42 28 69 70 5b 31 | 2) | (S|IXB(ip[1|
|00000630| 5d 29 20 3e 3e 20 34 29 | 3b 0d 09 69 6e 63 6f 75 |]) >> 4)|;..incou|
|00000640| 6e 74 20 3d 20 28 28 6f | 75 74 63 6f 75 6e 74 20 |nt = ((o|utcount |
|00000650| 2f 20 33 29 20 2b 20 31 | 29 20 2a 20 34 3b 0d 09 |/ 3) + 1|) * 4;..|
|00000660| 66 6f 72 20 28 6e 20 3d | 20 6e 75 6d 72 65 61 64 |for (n =| numread|
|00000670| 3b 20 6e 20 3c 20 69 6e | 63 6f 75 6e 74 3b 20 6e |; n < in|count; n|
|00000680| 2b 2b 29 09 2f 2a 20 72 | 65 73 74 6f 72 65 20 6c |++)./* r|estore l|
|00000690| 6f 73 74 20 73 70 61 63 | 65 73 20 2a 2f 0d 09 09 |ost spac|es */...|
|000006a0| 69 62 75 66 5b 6e 5d 20 | 3d 20 27 20 27 3b 0d 0d |ibuf[n] |= ' ';..|
|000006b0| 09 6e 20 3d 20 30 3b 0d | 09 77 68 69 6c 65 20 28 |.n = 0;.|.while (|
|000006c0| 6e 20 3c 3d 20 6f 75 74 | 63 6f 75 6e 74 29 20 7b |n <= out|count) {|
|000006d0| 0d 09 09 2a 6f 70 2b 2b | 20 3d 20 53 49 58 42 28 |...*op++| = SIXB(|
|000006e0| 69 70 5b 30 5d 29 20 3c | 3c 20 32 20 7c 20 53 49 |ip[0]) <|< 2 | SI|
|000006f0| 58 42 28 69 70 5b 31 5d | 29 20 3e 3e 20 34 3b 0d |XB(ip[1]|) >> 4;.|
|00000700| 09 09 2a 6f 70 2b 2b 20 | 3d 20 53 49 58 42 28 69 |..*op++ |= SIXB(i|
|00000710| 70 5b 31 5d 29 20 3c 3c | 20 34 20 7c 20 53 49 58 |p[1]) <<| 4 | SIX|
|00000720| 42 28 69 70 5b 32 5d 29 | 20 3e 3e 20 32 3b 0d 09 |B(ip[2])| >> 2;..|
|00000730| 09 2a 6f 70 2b 2b 20 3d | 20 53 49 58 42 28 69 70 |.*op++ =| SIXB(ip|
|00000740| 5b 32 5d 29 20 3c 3c 20 | 36 20 7c 20 53 49 58 42 |[2]) << |6 | SIXB|
|00000750| 28 69 70 5b 33 5d 29 3b | 0d 09 09 69 70 20 2b 3d |(ip[3]);|...ip +=|
|00000760| 20 34 3b 0d 09 09 6e 20 | 2b 3d 20 33 3b 0d 09 7d | 4;...n |+= 3;..}|
|00000770| 0d 0d 09 66 6f 72 20 28 | 6e 3d 31 3b 20 6e 20 3c |...for (|n=1; n <|
|00000780| 3d 20 6f 75 74 63 6f 75 | 6e 74 3b 20 6e 2b 2b 29 |= outcou|nt; n++)|
|00000790| 0d 09 09 63 6f 6d 70 5f | 63 5f 63 72 63 28 28 75 |...comp_|c_crc((u|
|000007a0| 6e 73 69 67 6e 65 64 29 | 6f 62 75 66 5b 6e 5d 29 |nsigned)|obuf[n])|
|000007b0| 3b 0d 0d 09 66 77 72 69 | 74 65 28 6f 62 75 66 2b |;...fwri|te(obuf+|
|000007c0| 31 2c 20 31 2c 20 6f 75 | 74 63 6f 75 6e 74 2c 20 |1, 1, ou|tcount, |
|000007d0| 6f 75 74 66 29 3b 0d 09 | 72 65 74 75 72 6e 20 6f |outf);..|return o|
|000007e0| 75 74 63 6f 75 6e 74 3b | 0d 7d 0d 0d 68 65 78 5f |utcount;|.}..hex_|
|000007f0| 74 6f 5f 62 69 6e 28 69 | 62 75 66 2c 20 6f 75 74 |to_bin(i|buf, out|
|00000800| 66 29 0d 63 68 61 72 20 | 69 62 75 66 5b 5d 3b 0d |f).char |ibuf[];.|
|00000810| 46 49 4c 45 20 2a 6f 75 | 74 66 3b 0d 7b 0d 09 72 |FILE *ou|tf;.{..r|
|00000820| 65 67 69 73 74 65 72 20 | 63 68 61 72 20 2a 69 70 |egister |char *ip|
|00000830| 20 3d 20 69 62 75 66 3b | 0d 09 72 65 67 69 73 74 | = ibuf;|..regist|
|00000840| 65 72 20 69 6e 74 20 6e | 2c 20 6f 75 74 63 6f 75 |er int n|, outcou|
|00000850| 6e 74 3b 0d 09 69 6e 74 | 20 63 3b 0d 0d 09 6e 20 |nt;..int| c;...n |
|00000860| 3d 20 73 74 72 6c 65 6e | 28 69 62 75 66 29 20 2d |= strlen|(ibuf) -|
|00000870| 20 31 3b 0d 09 6f 75 74 | 63 6f 75 6e 74 20 3d 20 | 1;..out|count = |
|00000880| 6e 20 2f 20 32 3b 0d 09 | 66 6f 72 20 28 6e 20 3d |n / 2;..|for (n =|
|00000890| 20 30 3b 20 6e 20 3c 20 | 6f 75 74 63 6f 75 6e 74 | 0; n < |outcount|
|000008a0| 3b 20 6e 2b 2b 29 20 7b | 0d 09 09 63 20 3d 20 68 |; n++) {|...c = h|
|000008b0| 65 78 69 74 28 2a 69 70 | 2b 2b 29 3b 0d 09 09 63 |exit(*ip|++);...c|
|000008c0| 6f 6d 70 5f 65 5f 63 72 | 63 28 28 75 6e 73 69 67 |omp_e_cr|c((unsig|
|000008d0| 6e 65 64 29 28 63 20 3d | 20 28 63 20 3c 3c 20 34 |ned)(c =| (c << 4|
|000008e0| 29 20 7c 20 68 65 78 69 | 74 28 2a 69 70 2b 2b 29 |) | hexi|t(*ip++)|
|000008f0| 29 29 3b 0d 09 09 66 70 | 75 74 63 28 63 2c 20 6f |));...fp|utc(c, o|
|00000900| 75 74 66 29 3b 0d 09 7d | 0d 09 72 65 74 75 72 6e |utf);..}|..return|
|00000910| 20 6f 75 74 63 6f 75 6e | 74 3b 0d 7d 0d 0d 68 65 | outcoun|t;.}..he|
|00000920| 78 69 74 28 63 29 0d 69 | 6e 74 20 63 3b 0d 7b 0d |xit(c).i|nt c;.{.|
|00000930| 09 69 66 20 28 27 30 27 | 20 3c 3d 20 63 20 26 26 |.if ('0'| <= c &&|
|00000940| 20 63 20 3c 3d 20 27 39 | 27 29 0d 09 09 72 65 74 | c <= '9|')...ret|
|00000950| 75 72 6e 20 63 20 2d 20 | 27 30 27 3b 0d 09 69 66 |urn c - |'0';..if|
|00000960| 20 28 27 41 27 20 3c 3d | 20 63 20 26 26 20 63 20 | ('A' <=| c && c |
|00000970| 3c 3d 20 27 46 27 29 0d | 09 09 72 65 74 75 72 6e |<= 'F').|..return|
|00000980| 20 63 20 2d 20 27 41 27 | 20 2b 20 31 30 3b 0d 0d | c - 'A'| + 10;..|
|00000990| 09 66 70 72 69 6e 74 66 | 28 73 74 64 65 72 72 2c |.fprintf|(stderr,|
|000009a0| 20 22 69 6c 6c 65 67 61 | 6c 20 68 65 78 20 64 69 | "illega|l hex di|
|000009b0| 67 69 74 3a 20 25 63 22 | 2c 20 63 29 3b 0d 09 65 |git: %c"|, c);..e|
|000009c0| 78 69 74 28 34 29 3b 0d | 09 2f 2a 20 4e 4f 54 52 |xit(4);.|./* NOTR|
|000009d0| 45 41 43 48 45 44 20 2a | 2f 0d 7d 0d 0d 70 75 74 |EACHED *|/.}..put|
|000009e0| 32 28 62 70 2c 20 76 61 | 6c 75 65 29 0d 63 68 61 |2(bp, va|lue).cha|
|000009f0| 72 20 2a 62 70 3b 0d 73 | 68 6f 72 74 20 76 61 6c |r *bp;.s|hort val|
|00000a00| 75 65 3b 0d 7b 0d 09 2a | 62 70 2b 2b 20 3d 20 28 |ue;.{..*|bp++ = (|
|00000a10| 76 61 6c 75 65 20 3e 3e | 20 38 29 20 26 20 42 59 |value >>| 8) & BY|
|00000a20| 54 45 4d 41 53 4b 3b 0d | 09 2a 62 70 2b 2b 20 3d |TEMASK;.|.*bp++ =|
|00000a30| 20 76 61 6c 75 65 20 26 | 20 42 59 54 45 4d 41 53 | value &| BYTEMAS|
|00000a40| 4b 3b 0d 7d 0d 0d 70 75 | 74 34 28 62 70 2c 20 76 |K;.}..pu|t4(bp, v|
|00000a50| 61 6c 75 65 29 0d 63 68 | 61 72 20 2a 62 70 3b 0d |alue).ch|ar *bp;.|
|00000a60| 6c 6f 6e 67 20 76 61 6c | 75 65 3b 0d 7b 0d 09 72 |long val|ue;.{..r|
|00000a70| 65 67 69 73 74 65 72 20 | 69 6e 74 20 69 2c 20 63 |egister |int i, c|
|00000a80| 3b 0d 0d 09 66 6f 72 20 | 28 69 20 3d 20 30 3b 20 |;...for |(i = 0; |
|00000a90| 69 20 3c 20 34 3b 20 69 | 2b 2b 29 20 7b 0d 09 09 |i < 4; i|++) {...|
|00000aa0| 63 20 3d 20 28 76 61 6c | 75 65 20 3e 3e 20 32 34 |c = (val|ue >> 24|
|00000ab0| 29 20 26 20 42 59 54 45 | 4d 41 53 4b 3b 0d 09 09 |) & BYTE|MASK;...|
|00000ac0| 76 61 6c 75 65 20 3c 3c | 3d 20 38 3b 0d 09 09 2a |value <<|= 8;...*|
|00000ad0| 62 70 2b 2b 20 3d 20 63 | 3b 0d 09 7d 0d 7d 0d 00 |bp++ = c|;..}.}..|
|00000ae0| 00 01 00 00 00 01 62 00 | 00 00 62 00 00 00 5a 73 |......b.|..b...Zs|
|00000af0| 5f 63 6f 6c 2b 2b 3b 0d | 20 20 20 20 20 20 20 20 |_col++;.| |
|00000b00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 0a | | .|
|00000b10| 72 65 61 64 6d 65 2e 74 | 6c 63 6d 02 00 00 00 54 |readme.t|lcm....T|
|00000b20| 45 58 54 4d 50 53 20 01 | 00 00 00 00 00 00 00 00 |EXTMPS .|........|
|00000b30| 00 54 45 58 54 4d 50 53 | 20 01 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b50| 00 9e b4 f5 68 00 00 20 | 3f 00 00 01 bc 2d 3e 6f |....h.. |?....->o|
|00000b60| 5f 65 64 67 65 20 3d 20 | 6f 73 5f 63 6f 6c 3b 0d |_edge = |os_col;.|
|00000b70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000b80| 20 20 20 20 20 20 20 20 | 7d 0d 20 20 20 20 20 20 | |}. |
|00000b90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000ba0| 20 20 62 72 65 61 6b 3b | 0d 20 20 20 20 20 20 20 | break;|. |
|00000bb0| 20 20 20 20 20 20 20 20 | 20 7d 0d 20 20 20 20 20 | | }. |
|00000bc0| 20 20 20 7d 0d 7d 20 20 | 20 20 20 20 20 20 20 20 | }.} | |
|00000bd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 00 | | .|
|00000be0| 00 00 48 00 09 4d 6f 6e | 61 63 6f 00 6b 00 73 74 |..H..Mon|aco.k.st|
|00000bf0| 20 43 72 6f 73 73 2d 72 | 65 66 65 72 65 6e 63 65 | Cross-r|eference|
|00000c00| 72 3a 0d 0d 09 00 06 00 | 04 00 90 00 34 01 d6 02 |r:......|....4...|
|00000c10| 42 00 90 00 34 01 d6 02 | 42 a1 cc 2a 39 00 00 02 |B...4...|B..*9...|
|00000c20| da 00 00 02 da 00 00 00 | 00 01 00 00 00 00 0a 00 |........|........|
|00000c30| 09 06 4d 6f 6e 61 63 6f | 00 00 00 00 04 00 06 00 |..Monaco|........|
|00000c40| 08 00 00 01 00 00 00 01 | 62 00 00 00 62 00 00 00 |........|b...b...|
|00000c50| 5a 00 32 02 e0 06 9e 00 | 00 00 1c 00 5a 00 02 4d |Z.2.....|....Z..M|
|00000c60| 50 53 52 00 00 00 1a 45 | 46 4e 54 00 00 00 26 45 |PSR....E|FNT...&E|
|00000c70| 54 41 42 00 00 00 32 03 | ed ff ff 00 00 00 00 00 |TAB...2.|........|
|00000c80| 00 00 00 03 eb ff ff 00 | 00 00 4c 00 32 16 b8 03 |........|..L.2...|
|00000c90| ec ff ff 00 00 00 5a 00 | 32 17 30 09 43 6f 70 79 |......Z.|2.0.Copy|
|00000ca0| 72 69 67 68 74 20 31 39 | 38 37 2d 31 39 38 39 2c |right 19|87-1989,|
|00000cb0| 20 45 64 75 61 72 64 20 | 53 63 68 77 61 6e 20 50 | Eduard |Schwan P|
|00000cc0| 72 6f 67 72 61 6d 73 20 | 5b 65 73 70 5d 0d 09 09 |rograms |[esp]...|
|00000cd0| 09 09 41 6c 6c 20 72 69 | 67 68 74 73 20 72 65 73 |..All ri|ghts res|
|00000ce0| 65 72 76 65 64 0d 54 4c | 43 20 28 54 68 65 20 4c |erved.TL|C (The L|
|00000cf0| 61 73 74 20 43 2d 43 72 | 6f 73 73 2d 52 65 66 65 |ast C-Cr|oss-Refe|
|00000d00| 72 65 6e 63 65 72 29 20 | 61 6e 64 20 54 4c 50 20 |rencer) |and TLP |
|00000d10| 28 73 61 6d 65 2c 20 62 | 75 74 20 66 6f 72 0d 50 |(same, b|ut for.P|
|00000d20| 61 73 63 61 6c 29 20 61 | 72 65 20 53 6f 75 72 63 |ascal) a|re Sourc|
|00000d30| 65 20 43 6f 64 65 20 43 | 72 6f 73 73 2d 52 65 66 |e Code C|ross-Ref|
|00000d40| 65 72 65 6e 63 65 20 47 | 65 6e 65 72 61 74 6f 72 |erence G|enerator|
|00000d50| 73 20 63 72 61 66 74 65 | 64 0d 61 6e 64 20 73 68 |s crafte|d.and sh|
|00000d60| 6f 74 20 69 6e 74 6f 20 | 74 68 65 20 50 75 62 6c |ot into |the Publ|
|00000d70| 69 63 20 44 6f 6d 61 69 | 6e 20 62 79 20 45 64 75 |ic Domai|n by Edu|
|00000d80| 61 72 64 20 53 63 68 77 | 61 6e 2e 20 20 54 68 65 |ard Schw|an. The|
|00000d90| 0d 73 6f 75 72 63 65 20 | 63 6f 64 65 2c 20 64 6f |.source |code, do|
|00000da0| 63 75 6d 65 6e 74 61 74 | 69 6f 6e 20 61 6e 64 20 |cumentat|ion and |
|00000db0| 65 78 65 63 75 74 61 62 | 6c 65 20 70 72 6f 67 72 |executab|le progr|
|00000dc0| 61 6d 20 6d 61 79 20 62 | 65 0d 66 72 65 65 6c 79 |am may b|e.freely|
|00000dd0| 20 64 69 73 74 72 69 62 | 75 74 65 64 20 61 73 20 | distrib|uted as |
|00000de0| 6c 6f 6e 67 20 61 73 20 | 74 68 65 20 63 6f 70 79 |long as |the copy|
|00000df0| 72 69 67 68 74 2f 61 75 | 74 68 6f 72 20 6e 6f 74 |right/au|thor not|
|00000e00| 69 63 65 73 0d 72 65 6d | 61 69 6e 20 69 6e 74 61 |ices.rem|ain inta|
|00000e10| 63 74 2c 20 61 6e 64 20 | 69 74 20 69 73 20 6e 6f |ct, and |it is no|
|00000e20| 74 20 75 73 65 64 20 69 | 6e 20 70 61 72 74 20 6f |t used i|n part o|
|00000e30| 72 20 77 68 6f 6c 65 20 | 61 73 20 74 68 65 0d 62 |r whole |as the.b|
|00000e40| 61 73 69 73 20 6f 66 20 | 61 20 63 6f 6d 6d 65 72 |asis of |a commer|
|00000e50| 63 69 61 6c 20 70 72 6f | 64 75 63 74 20 77 69 74 |cial pro|duct wit|
|00000e60| 68 6f 75 74 20 74 68 65 | 20 61 75 74 68 6f 72 27 |hout the| author'|
|00000e70| 73 0d 70 65 72 6d 69 73 | 73 69 6f 6e 2e 20 41 6e |s.permis|sion. An|
|00000e80| 79 20 63 6f 6d 6d 65 6e | 74 73 2c 20 62 75 67 2d |y commen|ts, bug-|
|00000e90| 66 69 78 65 73 2c 20 70 | 6f 72 74 73 20 6f 72 20 |fixes, p|orts or |
|00000ea0| 65 6e 68 61 6e 63 65 6d | 65 6e 74 73 0d 61 72 65 |enhancem|ents.are|
|00000eb0| 20 6d 6f 73 74 20 77 65 | 6c 63 6f 6d 65 2e 20 41 | most we|lcome. A|
|00000ec0| 6c 73 6f 2c 20 69 66 20 | 79 6f 75 20 66 69 6e 64 |lso, if |you find|
|00000ed0| 20 54 4c 43 20 61 6e 64 | 20 69 74 27 73 20 73 6f | TLC and| it's so|
|00000ee0| 75 72 63 65 0d 63 6f 64 | 65 20 75 73 65 66 75 6c |urce.cod|e useful|
|00000ef0| 2c 20 61 20 63 6f 6e 74 | 72 69 62 75 74 69 6f 6e |, a cont|ribution|
|00000f00| 20 6f 66 20 24 32 30 20 | 28 63 68 65 63 6b 2f 6d | of $20 |(check/m|
|00000f10| 6f 6e 65 79 20 6f 72 64 | 65 72 29 20 69 73 0d 65 |oney ord|er) is.e|
|00000f20| 6e 63 6f 75 72 61 67 65 | 64 21 20 20 48 6f 70 65 |ncourage|d! Hope|
|00000f30| 66 75 6c 6c 79 20 77 65 | 20 77 69 6c 6c 20 61 6c |fully we| will al|
|00000f40| 6c 20 73 65 65 20 6d 6f | 72 65 20 73 6f 75 72 63 |l see mo|re sourc|
|00000f50| 65 20 63 6f 64 65 0d 64 | 69 73 74 72 69 62 75 74 |e code.d|istribut|
|00000f60| 65 64 21 20 20 0d 09 45 | 64 75 61 72 64 20 53 63 |ed! ..E|duard Sc|
|00000f70| 68 77 61 6e 2c 20 31 31 | 31 32 20 4f 63 65 61 6e |hwan, 11|12 Ocean|
|00000f80| 69 63 20 44 72 69 76 65 | 2c 20 45 6e 63 69 6e 69 |ic Drive|, Encini|
|00000f90| 74 61 73 2c 20 43 61 6c | 69 66 2e 20 39 32 30 32 |tas, Cal|if. 9202|
|00000fa0| 34 0d 09 28 36 31 39 29 | 20 36 33 32 2d 30 34 36 |4..(619)| 632-046|
|00000fb0| 36 20 35 3a 30 30 50 4d | 20 2d 20 38 3a 30 30 50 |6 5:00PM| - 8:00P|
|00000fc0| 4d 20 50 53 54 0d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |M PST.--|--------|
|00000fd0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000fe0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000ff0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001000| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001010| 0d 0d 41 20 71 75 69 63 | 6b 20 6e 6f 74 65 20 61 |..A quic|k note a|
|00001020| 62 6f 75 74 20 74 68 65 | 20 73 6f 75 72 63 65 20 |bout the| source |
|00001030| 63 6f 64 65 3a 0d 0d 54 | 68 65 72 65 20 61 72 65 |code:..T|here are|
|00001040| 20 72 65 61 6c 6c 79 20 | 74 77 6f 20 70 72 6f 67 | really |two prog|
|00001050| 72 61 6d 73 20 69 6e 74 | 65 72 74 77 69 6e 65 64 |rams int|ertwined|
|00001060| 20 69 6e 20 74 68 69 73 | 20 73 6f 75 72 63 65 2e | in this| source.|
|00001070| 0d 54 4c 43 20 69 73 20 | 61 20 43 20 73 6f 75 72 |.TLC is |a C sour|
|00001080| 63 65 20 63 72 6f 73 73 | 2d 72 65 66 65 72 65 6e |ce cross|-referen|
|00001090| 63 65 72 2c 20 61 6e 64 | 20 54 4c 50 20 28 61 20 |cer, and| TLP (a |
|000010a0| 72 65 63 65 6e 74 0d 61 | 64 64 69 74 69 6f 6e 29 |recent.a|ddition)|
|000010b0| 20 69 73 20 61 20 50 61 | 73 63 61 6c 20 73 6f 75 | is a Pa|scal sou|
|000010c0| 72 63 65 20 63 72 6f 73 | 73 2d 20 72 65 66 65 72 |rce cros|s- refer|
|000010d0| 65 6e 63 65 72 2e 20 20 | 49 20 77 61 6e 74 65 64 |encer. |I wanted|
|000010e0| 0d 74 6f 20 70 75 74 20 | 61 20 72 65 61 6c 20 70 |.to put |a real p|
|000010f0| 61 72 73 65 72 20 69 6e | 20 68 65 72 65 20 74 6f |arser in| here to|
|00001100| 20 68 65 6c 70 20 69 64 | 65 6e 74 69 66 79 20 76 | help id|entify v|
|00001110| 61 72 69 61 62 6c 65 0d | 75 73 61 67 65 20 28 64 |ariable.|usage (d|
|00001120| 65 63 6c 61 72 61 74 69 | 6f 6e 2c 20 72 65 66 65 |eclarati|on, refe|
|00001130| 72 65 6e 63 65 2c 20 61 | 73 73 69 67 6e 6d 65 6e |rence, a|ssignmen|
|00001140| 74 29 2c 20 62 75 74 20 | 6f 66 20 63 6f 75 72 73 |t), but |of cours|
|00001150| 65 2c 0d 69 74 20 77 61 | 73 20 6e 65 65 64 65 64 |e,.it wa|s needed|
|00001160| 20 62 65 66 6f 72 65 20 | 69 74 20 77 61 73 20 64 | before |it was d|
|00001170| 6f 6e 65 2c 20 61 6e 64 | 20 73 6f 6d 65 20 71 75 |one, and| some qu|
|00001180| 69 63 6b 69 65 20 73 6d | 61 72 74 73 0d 77 65 72 |ickie sm|arts.wer|
|00001190| 65 20 69 6e 73 65 72 74 | 65 64 20 69 6e 73 74 65 |e insert|ed inste|
|000011a0| 61 64 2c 20 6a 75 73 74 | 20 74 6f 20 67 65 74 20 |ad, just| to get |
|000011b0| 69 74 20 77 6f 72 6b 69 | 6e 67 2e 20 20 4f 66 20 |it worki|ng. Of |
|000011c0| 63 6f 75 72 73 65 2c 0d | 49 20 68 61 76 65 20 6e |course,.|I have n|
|000011d0| 6f 74 20 79 65 74 20 67 | 6f 6e 65 20 62 61 63 6b |ot yet g|one back|
|000011e0| 20 74 6f 20 72 65 70 6c | 61 63 65 20 74 68 65 20 | to repl|ace the |
|000011f0| 70 61 72 73 65 72 2c 20 | 61 6e 64 0d 70 72 6f 62 |parser, |and.prob|
|00001200| 61 62 6c 79 20 6e 65 76 | 65 72 20 77 69 6c 6c 2e |ably nev|er will.|
|00001210| 2e 20 69 74 20 69 73 20 | 67 6f 6f 64 20 65 6e 6f |. it is |good eno|
|00001220| 75 67 68 20 66 6f 72 20 | 6d 65 2c 20 61 6e 64 20 |ugh for |me, and |
|00001230| 49 27 6d 0d 6c 61 7a 79 | 21 20 41 6e 79 77 61 79 |I'm.lazy|! Anyway|
|00001240| 2c 20 54 4c 43 20 63 61 | 6d 65 20 66 69 72 73 74 |, TLC ca|me first|
|00001250| 2c 20 61 6e 64 20 61 6c | 6c 20 74 68 65 20 66 69 |, and al|l the fi|
|00001260| 6c 65 73 20 6e 61 6d 65 | 64 0d 54 4c 43 78 78 78 |les name|d.TLCxxx|
|00001270| 78 2e 43 20 61 72 65 20 | 6e 65 65 64 65 64 20 74 |x.C are |needed t|
|00001280| 6f 20 63 6f 6d 70 69 6c | 65 20 54 4c 43 2e 20 20 |o compil|e TLC. |
|00001290| 54 4c 50 20 63 61 6d 65 | 20 6c 61 74 65 72 20 61 |TLP came| later a|
|000012a0| 73 20 61 6e 0d 61 70 70 | 65 6e 64 61 67 65 20 74 |s an.app|endage t|
|000012b0| 6f 20 54 4c 43 2e 20 20 | 49 74 20 75 73 65 73 20 |o TLC. |It uses |
|000012c0| 6d 61 6e 79 20 6f 66 20 | 74 68 65 73 65 20 54 4c |many of |these TL|
|000012d0| 43 78 78 78 20 66 69 6c | 65 73 20 74 6f 6f 2c 0d |Cxxx fil|es too,.|
|000012e0| 61 6e 64 20 69 74 20 61 | 64 64 69 74 69 6f 6e 61 |and it a|dditiona|
|000012f0| 6c 6c 79 20 6e 65 65 64 | 73 20 61 6c 6c 20 74 68 |lly need|s all th|
|00001300| 65 20 54 4c 50 78 78 78 | 78 2e 43 20 66 69 6c 65 |e TLPxxx|x.C file|
|00001310| 73 2e 20 54 68 65 20 4d | 50 57 0d 4d 61 6b 65 20 |s. The M|PW.Make |
|00001320| 66 69 6c 65 73 20 61 72 | 65 20 69 6e 63 6c 75 64 |files ar|e includ|
|00001330| 65 64 20 68 65 72 65 20 | 28 54 4c 43 2e 4d 41 4b |ed here |(TLC.MAK|
|00001340| 45 20 61 6e 64 20 54 4c | 50 2e 4d 41 4b 45 29 2c |E and TL|P.MAKE),|
|00001350| 20 62 75 74 20 61 0d 74 | 61 62 6c 65 20 62 65 6c | but a.t|able bel|
|00001360| 6f 77 20 73 68 6f 75 6c | 64 20 73 68 6f 77 20 79 |ow shoul|d show y|
|00001370| 6f 75 20 77 68 6f 20 75 | 73 65 73 20 77 68 61 74 |ou who u|ses what|
|00001380| 2e 0d 0d 44 4f 43 55 4d | 45 4e 54 09 09 4e 45 45 |...DOCUM|ENT..NEE|
|00001390| 44 45 44 20 42 59 09 09 | 09 4e 45 45 44 45 44 20 |DED BY..|.NEEDED |
|000013a0| 42 59 09 09 09 4e 45 45 | 44 45 44 20 42 59 0d 46 |BY...NEE|DED BY.F|
|000013b0| 49 4c 45 09 09 09 42 4f | 54 48 09 09 09 09 54 4c |ILE...BO|TH....TL|
|000013c0| 43 09 09 09 09 09 54 4c | 50 0d 2d 2d 2d 2d 2d 2d |C.....TL|P.------|
|000013d0| 2d 2d 2d 09 09 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 09 |---..---|-------.|
|000013e0| 09 09 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 09 09 09 |..------|-----...|
|000013f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 0d 72 65 61 64 |--------|---.read|
|00001400| 6d 65 2e 74 6c 63 09 09 | 74 6c 63 2e 65 78 74 09 |me.tlc..|tlc.ext.|
|00001410| 09 09 09 74 6c 63 2e 63 | 09 09 09 09 74 6c 70 2e |...tlc.c|....tlp.|
|00001420| 63 0d 74 6c 63 48 65 6c | 70 2e 44 6f 63 09 09 74 |c.tlcHel|p.Doc..t|
|00001430| 6c 63 2e 68 09 09 09 09 | 74 6c 63 2e 6d 61 6b 65 |lc.h....|tlc.make|
|00001440| 09 09 09 74 6c 70 2e 6d | 61 6b 65 0d 09 09 09 09 |...tlp.m|ake.....|
|00001450| 74 6c 63 63 6d 64 2e 63 | 09 09 09 74 6c 63 67 74 |tlccmd.c|...tlcgt|
|00001460| 6f 6b 2e 63 09 09 09 74 | 6c 70 67 74 6f 6b 2e 63 |ok.c...t|lpgtok.c|
|00001470| 0d 09 09 09 09 74 6c 63 | 70 61 72 6d 2e 63 09 09 |.....tlc|parm.c..|
|00001480| 09 74 6c 63 70 61 72 6d | 2e 64 61 74 09 09 09 74 |.tlcparm|.dat...t|
|00001490| 6c 70 70 61 72 6d 2e 64 | 61 74 0d 09 09 09 09 74 |lpparm.d|at.....t|
|000014a0| 6c 63 70 61 72 6d 2e 68 | 09 09 09 74 6c 63 70 72 |lcparm.h|...tlcpr|
|000014b0| 6f 63 66 2e 63 09 09 09 | 74 6c 70 70 72 6f 63 66 |ocf.c...|tlpprocf|
|000014c0| 2e 63 0d 09 09 09 09 74 | 6c 63 72 65 73 77 2e 63 |.c.....t|lcresw.c|
|000014d0| 09 09 09 74 6c 63 72 65 | 73 77 2e 64 61 74 09 09 |...tlcre|sw.dat..|
|000014e0| 09 74 6c 70 72 65 73 77 | 2e 64 61 74 0d 09 09 09 |.tlpresw|.dat....|
|000014f0| 09 74 6c 63 73 65 74 70 | 2e 63 0d 09 09 09 09 74 |.tlcsetp|.c.....t|
|00001500| 6c 63 73 74 61 74 2e 63 | 0d 09 09 09 09 74 6c 63 |lcstat.c|.....tlc|
|00001510| 75 74 69 6c 2e 63 0d 09 | 09 09 09 74 6c 63 78 72 |util.c..|...tlcxr|
|00001520| 65 66 2e 63 0d 0d 0d 53 | 6f 75 72 63 65 20 63 6f |ef.c...S|ource co|
|00001530| 64 65 20 68 69 73 74 6f | 72 79 3a 0d 0d 54 4c 43 |de histo|ry:..TLC|
|00001540| 20 77 61 73 20 6f 72 69 | 67 69 6e 61 6c 6c 79 20 | was ori|ginally |
|00001550| 77 72 69 74 74 65 6e 20 | 6f 6e 20 61 20 36 34 6b |written |on a 64k|
|00001560| 20 41 70 70 6c 65 20 49 | 49 2b 20 69 6e 20 41 7a | Apple I|I+ in Az|
|00001570| 74 65 63 20 43 36 35 2c | 0d 74 68 65 6e 20 70 6f |tec C65,|.then po|
|00001580| 72 74 65 64 20 74 6f 20 | 41 50 57 20 43 20 6f 6e |rted to |APW C on|
|00001590| 20 61 6e 20 41 70 70 6c | 65 20 49 49 47 53 2c 20 | an Appl|e IIGS, |
|000015a0| 74 68 65 6e 20 74 6f 20 | 4d 50 57 20 43 20 6f 6e |then to |MPW C on|
|000015b0| 20 61 6e 0d 41 70 70 6c | 65 20 4d 61 63 69 6e 74 | an.Appl|e Macint|
|000015c0| 6f 73 68 20 49 49 2e 20 | 20 49 20 68 61 76 65 20 |osh II. | I have |
|000015d0| 6e 6f 74 20 64 6f 6e 65 | 20 61 6e 79 20 72 65 67 |not done| any reg|
|000015e0| 72 65 73 73 69 6f 6e 20 | 74 65 73 74 69 6e 67 0d |ression |testing.|
|000015f0| 61 66 74 65 72 20 61 64 | 64 69 6e 67 20 74 68 65 |after ad|ding the|
|00001600| 20 63 6f 6d 70 69 6c 65 | 72 20 73 77 69 74 63 68 | compile|r switch|
|00001610| 65 73 2c 20 62 75 74 20 | 69 74 20 73 68 6f 75 6c |es, but |it shoul|
|00001620| 64 20 73 74 69 6c 6c 20 | 72 75 6e 0d 6f 6e 20 61 |d still |run.on a|
|00001630| 20 49 49 47 53 20 28 49 | 74 20 64 6f 65 73 20 63 | IIGS (I|t does c|
|00001640| 6f 6d 70 69 6c 65 2e 2e | 3a 29 2e 20 20 49 20 61 |ompile..|:). I a|
|00001650| 6d 20 73 75 72 65 20 69 | 74 20 68 61 73 20 67 72 |m sure i|t has gr|
|00001660| 6f 77 6e 20 66 61 72 0d | 74 6f 6f 20 62 69 67 20 |own far.|too big |
|00001670| 66 6f 72 20 65 76 65 6e | 20 74 68 65 20 41 7a 74 |for even| the Azt|
|00001680| 65 63 20 49 6e 74 65 72 | 70 72 65 74 65 64 20 43 |ec Inter|preted C|
|00001690| 20 6f 6e 20 74 68 65 20 | 41 70 70 6c 65 20 49 49 | on the |Apple II|
|000016a0| 2e 20 49 0d 68 61 76 65 | 20 6e 6f 74 20 79 65 74 |. I.have| not yet|
|000016b0| 20 70 6f 72 74 65 64 20 | 69 74 20 74 6f 20 61 6e | ported |it to an|
|000016c0| 20 4d 53 2d 44 4f 53 20 | 6d 61 63 68 69 6e 65 2c | MS-DOS |machine,|
|000016d0| 20 62 75 74 20 69 74 20 | 73 68 6f 75 6c 64 0d 67 | but it |should.g|
|000016e0| 6f 20 61 62 6f 75 74 20 | 61 73 20 73 6d 6f 6f 74 |o about |as smoot|
|000016f0| 68 6c 79 20 61 73 20 74 | 68 65 20 6f 74 68 65 72 |hly as t|he other|
|00001700| 20 70 6f 72 74 73 2e 20 | 0d 0d 49 20 68 61 76 65 | ports. |..I have|
|00001710| 20 6e 6f 74 20 6d 61 64 | 65 20 61 6e 20 65 66 66 | not mad|e an eff|
|00001720| 6f 72 74 20 74 6f 20 67 | 72 6f 75 70 20 6d 61 63 |ort to g|roup mac|
|00001730| 68 69 6e 65 2d 73 70 65 | 63 69 66 69 63 0d 66 75 |hine-spe|cific.fu|
|00001740| 6e 63 74 69 6f 6e 73 2c | 20 62 75 74 20 74 68 65 |nctions,| but the|
|00001750| 79 20 68 6f 70 65 66 75 | 6c 6c 79 20 6a 75 73 74 |y hopefu|lly just|
|00001760| 20 74 75 72 6e 65 64 20 | 6f 75 74 20 74 68 61 74 | turned |out that|
|00001770| 20 77 61 79 2e 2e 0d 61 | 6c 6c 20 69 6e 20 54 4c | way...a|ll in TL|
|00001780| 43 55 54 49 4c 2e 43 2e | 20 20 4e 61 6d 65 6c 79 |CUTIL.C.| Namely|
|00001790| 20 67 65 74 5f 74 69 6d | 65 28 29 2c 20 67 65 74 | get_tim|e(), get|
|000017a0| 5f 6d 65 6d 28 29 2c 0d | 63 68 65 63 6b 5f 75 73 |_mem(),.|check_us|
|000017b0| 65 72 5f 61 62 6f 72 74 | 28 29 2c 20 61 6e 64 20 |er_abort|(), and |
|000017c0| 6d 61 79 62 65 20 64 6f | 5f 66 6f 72 6d 5f 66 65 |maybe do|_form_fe|
|000017d0| 65 64 28 29 2e 20 20 41 | 6c 73 6f 20 63 68 65 63 |ed(). A|lso chec|
|000017e0| 6b 0d 6f 75 74 20 54 4c | 43 2e 48 20 74 68 6f 72 |k.out TL|C.H thor|
|000017f0| 6f 75 67 68 6c 79 2e 20 | 53 6f 6d 65 20 69 6e 74 |oughly. |Some int|
|00001800| 65 72 65 73 74 69 6e 67 | 20 63 6f 6e 73 74 61 6e |eresting| constan|
|00001810| 74 73 20 61 72 65 20 68 | 69 64 69 6e 67 0d 69 6e |ts are h|iding.in|
|00001820| 20 74 68 65 72 65 2e 20 | 20 59 6f 75 20 73 68 6f | there. | You sho|
|00001830| 75 6c 64 6e 27 74 20 6e | 65 65 64 20 74 6f 20 64 |uldn't n|eed to d|
|00001840| 69 64 64 6c 65 20 61 6e | 79 20 6f 66 20 74 68 65 |iddle an|y of the|
|00001850| 6d 2c 20 75 6e 6c 65 73 | 73 0d 79 6f 75 20 61 72 |m, unles|s.you ar|
|00001860| 65 20 70 6f 72 74 69 6e | 67 20 69 74 20 74 6f 20 |e portin|g it to |
|00001870| 61 6e 6f 74 68 65 72 20 | 6d 61 63 68 69 6e 65 2e |another |machine.|
|00001880| 20 0d 0d 54 68 69 73 20 | 68 61 73 20 62 65 65 6e | ..This |has been|
|00001890| 20 61 20 74 68 72 65 65 | 20 79 65 61 72 20 28 6e | a three| year (n|
|000018a0| 6f 74 2d 73 6f 2d 63 6f | 70 69 6f 75 73 29 20 73 |ot-so-co|pious) s|
|000018b0| 70 61 72 65 2d 74 69 6d | 65 0d 65 66 66 6f 72 74 |pare-tim|e.effort|
|000018c0| 20 6f 6e 20 6d 79 20 70 | 61 72 74 2c 20 61 6e 64 | on my p|art, and|
|000018d0| 20 49 20 61 6d 20 68 6f | 70 69 6e 67 20 74 68 61 | I am ho|ping tha|
|000018e0| 74 20 74 68 69 73 20 77 | 69 6c 6c 20 62 65 20 61 |t this w|ill be a|
|000018f0| 73 0d 75 73 65 66 75 6c | 20 74 6f 20 79 6f 75 20 |s.useful| to you |
|00001900| 61 73 20 69 74 20 68 61 | 73 20 62 65 65 6e 20 74 |as it ha|s been t|
|00001910| 6f 20 6d 65 2e 20 20 49 | 66 20 79 6f 75 20 61 72 |o me. I|f you ar|
|00001920| 65 20 69 6e 74 65 72 65 | 73 74 65 64 0d 69 6e 20 |e intere|sted.in |
|00001930| 70 6f 72 74 69 6e 67 20 | 74 68 69 73 20 74 6f 20 |porting |this to |
|00001940| 79 65 74 20 61 6e 6f 74 | 68 65 72 20 6d 61 63 68 |yet anot|her mach|
|00001950| 69 6e 65 2c 20 6f 72 20 | 68 61 76 65 20 63 6f 6d |ine, or |have com|
|00001960| 6d 65 6e 74 73 20 6f 72 | 0d 62 75 67 20 72 65 70 |ments or|.bug rep|
|00001970| 6f 72 74 73 2c 20 6f 72 | 20 6a 75 73 74 20 77 61 |orts, or| just wa|
|00001980| 6e 74 20 74 6f 20 73 61 | 79 20 22 68 69 22 20 6f |nt to sa|y "hi" o|
|00001990| 72 20 73 65 6e 64 20 6d | 65 20 6d 6f 6e 65 79 2c |r send m|e money,|
|000019a0| 0d 70 6c 65 61 73 65 20 | 64 6f 20 66 65 65 6c 20 |.please |do feel |
|000019b0| 66 72 65 65 20 74 6f 20 | 63 6f 6e 74 61 63 74 20 |free to |contact |
|000019c0| 6d 65 2e 20 20 49 20 61 | 6d 20 6f 6e 20 41 70 70 |me. I a|m on App|
|000019d0| 6c 65 4c 69 6e 6b 0d 28 | 4a 4c 2e 54 45 43 48 2c |leLink.(|JL.TECH,|
|000019e0| 20 61 74 74 65 6e 3a 45 | 64 75 61 72 64 20 53 63 | atten:E|duard Sc|
|000019f0| 68 77 61 6e 29 2c 20 6f | 72 20 61 74 20 74 68 65 |hwan), o|r at the|
|00001a00| 20 61 64 64 72 65 73 73 | 20 62 65 6c 6f 77 2e 0d | address| below..|
|00001a10| 49 66 20 79 6f 75 20 6e | 65 65 64 20 73 65 72 69 |If you n|eed seri|
|00001a20| 6f 75 73 20 71 75 69 63 | 6b 20 61 73 73 69 73 74 |ous quic|k assist|
|00001a30| 61 6e 63 65 2c 20 49 20 | 63 61 6e 20 62 65 20 72 |ance, I |can be r|
|00001a40| 65 61 63 68 65 64 20 61 | 74 0d 68 6f 6d 65 20 61 |eached a|t.home a|
|00001a50| 74 20 74 68 65 20 70 68 | 6f 6e 65 20 6e 75 6d 62 |t the ph|one numb|
|00001a60| 65 72 20 6c 69 73 74 65 | 64 2c 20 61 74 20 74 68 |er liste|d, at th|
|00001a70| 65 20 74 69 6d 65 20 6c | 69 73 74 65 64 2e 0d 48 |e time l|isted..H|
|00001a80| 61 76 65 20 66 75 6e 20 | 77 69 74 68 20 69 74 21 |ave fun |with it!|
|00001a90| 20 20 54 54 46 4e 2c 0d | 0d 09 45 64 75 61 72 64 | TTFN,.|..Eduard|
|00001aa0| 20 53 63 68 77 61 6e 0d | 09 31 31 31 32 20 4f 63 | Schwan.|.1112 Oc|
|00001ab0| 65 61 6e 69 63 20 44 72 | 69 76 65 0d 09 45 6e 63 |eanic Dr|ive..Enc|
|00001ac0| 69 6e 69 74 61 73 2c 20 | 43 61 6c 69 66 6f 72 6e |initas, |Californ|
|00001ad0| 69 61 20 20 39 32 30 32 | 34 0d 09 28 36 31 39 29 |ia 9202|4..(619)|
|00001ae0| 20 36 33 32 2d 30 34 36 | 36 20 62 65 74 77 65 65 | 632-046|6 betwee|
|00001af0| 6e 20 35 3a 30 30 70 6d | 20 61 6e 64 20 38 3a 30 |n 5:00pm| and 8:0|
|00001b00| 30 70 6d 20 50 53 54 20 | 6f 6e 6c 79 2c 20 70 6c |0pm PST |only, pl|
|00001b10| 65 61 73 65 2e 0d 0d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |ease...-|--------|
|00001b20| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001b30| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001b40| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001b50| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001b60| 2d 0d 0d 54 68 65 73 65 | 20 61 72 65 20 74 68 65 |-..These| are the|
|00001b70| 20 6b 6e 6f 77 6e 20 62 | 75 67 73 2f 66 65 61 74 | known b|ugs/feat|
|00001b80| 75 72 65 73 2d 74 6f 2d | 62 65 2d 61 64 64 65 64 |ures-to-|be-added|
|00001b90| 20 74 6f 0d 54 68 65 20 | 4c 61 73 74 20 5b 43 2f | to.The |Last [C/|
|00001ba0| 50 61 73 63 61 6c 5d 20 | 43 72 6f 73 73 2d 72 65 |Pascal] |Cross-re|
|00001bb0| 66 65 72 65 6e 63 65 72 | 2c 20 61 73 20 6f 66 20 |ferencer|, as of |
|00001bc0| 37 2f 30 32 2f 38 39 20 | 28 76 31 2e 30 31 29 20 |7/02/89 |(v1.01) |
|00001bd0| 5b 65 73 70 5d 3a 0d 0d | 09 31 3a 58 72 65 66 20 |[esp]:..|.1:Xref |
|00001be0| 63 61 73 65 2d 73 65 6e | 73 69 74 69 76 69 74 79 |case-sen|sitivity|
|00001bf0| 20 69 73 6e 27 74 20 68 | 65 72 65 20 79 65 74 20 | isn't h|ere yet |
|00001c00| 28 64 6f 5f 63 61 73 65 | 5f 73 65 6e 73 2f 64 6f |(do_case|_sens/do|
|00001c10| 5f 78 63 61 73 65 5f 73 | 65 6e 73 29 2e 0d 09 20 |_xcase_s|ens)... |
|00001c20| 20 54 68 61 74 20 69 73 | 2c 20 6f 6e 65 20 63 61 | That is|, one ca|
|00001c30| 6e 27 74 20 68 61 76 65 | 20 63 61 73 65 2d 73 65 |n't have| case-se|
|00001c40| 6e 73 2e 20 69 64 73 20 | 77 69 74 68 6f 75 74 20 |ns. ids |without |
|00001c50| 68 61 76 69 6e 67 20 63 | 61 73 65 2d 73 65 6e 73 |having c|ase-sens|
|00001c60| 2e 0d 09 20 20 78 72 65 | 66 20 73 6f 72 74 69 6e |... xre|f sortin|
|00001c70| 67 2c 20 6f 72 20 76 69 | 63 65 20 76 65 72 73 61 |g, or vi|ce versa|
|00001c80| 2e 20 20 44 6f 43 61 73 | 65 53 65 6e 73 20 77 6f |. DoCas|eSens wo|
|00001c90| 72 6b 73 2c 20 62 75 74 | 20 44 6f 58 63 61 73 65 |rks, but| DoXcase|
|00001ca0| 53 65 6e 73 0d 09 20 20 | 69 73 20 69 67 6e 6f 72 |Sens.. |is ignor|
|00001cb0| 65 64 2e 20 20 54 68 65 | 20 77 61 79 20 49 20 64 |ed. The| way I d|
|00001cc0| 69 64 20 74 68 65 20 73 | 79 6d 62 6f 6c 20 74 61 |id the s|ymbol ta|
|00001cd0| 62 6c 65 2c 20 69 74 20 | 69 73 20 61 6e 20 69 63 |ble, it |is an ic|
|00001ce0| 6b 79 20 63 68 6f 72 65 | 0d 09 20 20 61 6e 64 20 |ky chore|.. and |
|00001cf0| 6d 61 79 20 6e 65 76 65 | 72 20 73 68 6f 77 20 75 |may neve|r show u|
|00001d00| 70 2c 20 62 75 74 20 68 | 65 79 2c 20 49 20 68 61 |p, but h|ey, I ha|
|00001d10| 76 65 6e 27 74 20 6e 65 | 65 64 65 64 20 69 74 20 |ven't ne|eded it |
|00001d20| 79 65 74 20 65 69 74 68 | 65 72 2e 0d 0d 09 32 3a |yet eith|er....2:|
|00001d30| 55 6e 64 65 72 73 63 6f | 72 65 2d 73 69 67 6e 69 |Undersco|re-signi|
|00001d40| 66 69 63 61 6e 63 65 20 | 28 50 61 73 63 61 6c 29 |ficance |(Pascal)|
|00001d50| 20 69 73 6e 27 74 20 68 | 65 72 65 20 79 65 74 2e | isn't h|ere yet.|
|00001d60| 0d 09 20 20 28 6e 6f 77 | 20 69 74 20 69 73 2e 2e |.. (now| it is..|
|00001d70| 20 30 2e 39 30 20 62 65 | 74 61 29 0d 0d 09 33 3a | 0.90 be|ta)...3:|
|00001d80| 49 6e 63 6c 75 64 65 20 | 66 69 6c 65 20 68 61 6e |Include |file han|
|00001d90| 64 6c 69 6e 67 20 69 73 | 6e 27 74 20 68 65 72 65 |dling is|n't here|
|00001da0| 20 79 65 74 2e 20 20 4e | 6f 74 20 6f 6e 6c 79 20 | yet. N|ot only |
|00001db0| 74 68 61 74 2c 20 62 75 | 74 20 74 68 65 20 73 63 |that, bu|t the sc|
|00001dc0| 61 6e 6e 65 72 0d 09 20 | 20 64 6f 65 73 6e 27 74 |anner.. | doesn't|
|00001dd0| 20 72 65 63 6f 67 6e 69 | 7a 65 20 74 68 65 20 3c | recogni|ze the <|
|00001de0| 69 6e 63 66 69 6c 65 2e | 68 3e 20 61 73 20 61 20 |incfile.|h> as a |
|00001df0| 73 74 72 69 6e 67 2c 20 | 73 6f 20 22 69 6e 63 66 |string, |so "incf|
|00001e00| 69 6c 65 22 20 61 6e 64 | 20 22 68 22 0d 09 20 20 |ile" and| "h".. |
|00001e10| 73 68 6f 77 20 75 70 20 | 61 73 20 73 65 70 61 72 |show up |as separ|
|00001e20| 61 74 65 20 78 72 65 66 | 27 65 64 20 69 64 65 6e |ate xref|'ed iden|
|00001e30| 74 69 66 69 65 72 73 20 | 28 68 6d 6d 2c 20 63 6f |tifiers |(hmm, co|
|00001e40| 75 6c 64 20 62 65 20 63 | 61 6c 6c 65 64 20 61 20 |uld be c|alled a |
|00001e50| 66 65 61 74 75 72 65 3f | 29 0d 09 0d 09 34 3a 54 |feature?|)....4:T|
|00001e60| 68 65 20 66 75 6c 6c 2d | 62 6c 6f 77 6e 20 70 61 |he full-|blown pa|
|00001e70| 72 73 65 72 20 69 73 6e | 27 74 20 68 65 72 65 20 |rser isn|'t here |
|00001e80| 79 65 74 2c 20 69 6e 73 | 74 65 61 64 20 73 6f 6d |yet, ins|tead som|
|00001e90| 65 20 71 75 69 63 6b 69 | 65 20 43 20 73 6d 61 72 |e quicki|e C smar|
|00001ea0| 74 73 0d 09 20 20 77 65 | 72 65 20 6b 6c 75 64 67 |ts.. we|re kludg|
|00001eb0| 65 64 20 69 6e 74 6f 20 | 74 68 65 20 73 63 61 6e |ed into |the scan|
|00001ec0| 6e 65 72 20 28 74 6c 63 | 2e 67 74 6f 6b 2e 63 29 |ner (tlc|.gtok.c)|
|00001ed0| 20 74 6f 20 6d 61 6b 65 | 20 74 68 69 73 20 75 73 | to make| this us|
|00001ee0| 65 61 62 6c 65 20 69 6e | 0d 09 20 20 61 20 22 72 |eable in|.. a "r|
|00001ef0| 65 61 73 6f 6e 61 62 6c | 65 22 20 74 69 6d 65 20 |easonabl|e" time |
|00001f00| 66 72 61 6d 65 2e 0d 09 | 20 20 28 4e 4f 54 45 3a |frame...| (NOTE:|
|00001f10| 20 61 73 20 6f 66 20 31 | 2e 30 31 2c 20 69 74 20 | as of 1|.01, it |
|00001f20| 6e 6f 77 20 6c 6f 6f 6b | 73 20 6c 69 6b 65 20 61 |now look|s like a|
|00001f30| 20 70 61 69 6e 20 74 6f | 20 72 65 74 72 6f 66 69 | pain to| retrofi|
|00001f40| 74 20 69 74 20 69 6e 2e | 2e 29 0d 09 20 20 0d 09 |t it in.|.).. ..|
|00001f50| 35 3a 54 68 65 20 73 79 | 6d 62 6f 6c 20 74 61 62 |5:The sy|mbol tab|
|00001f60| 6c 65 20 69 73 20 31 30 | 30 25 20 6d 65 6d 6f 72 |le is 10|0% memor|
|00001f70| 79 2d 72 65 73 69 64 65 | 6e 74 2c 20 61 6e 64 20 |y-reside|nt, and |
|00001f80| 74 68 65 72 65 66 6f 72 | 65 20 74 68 65 20 73 69 |therefor|e the si|
|00001f90| 7a 65 20 6f 66 0d 09 20 | 20 74 68 65 20 73 6f 75 |ze of.. | the sou|
|00001fa0| 72 63 65 20 63 6f 64 65 | 20 79 6f 75 20 74 68 72 |rce code| you thr|
|00001fb0| 6f 77 20 61 74 20 54 4c | 43 20 69 73 20 6c 69 6d |ow at TL|C is lim|
|00001fc0| 69 74 65 64 20 62 79 20 | 61 76 61 69 6c 61 62 6c |ited by |availabl|
|00001fd0| 65 20 68 65 61 70 20 73 | 70 61 63 65 2e 0d 09 20 |e heap s|pace... |
|00001fe0| 20 41 6e 6f 74 68 65 72 | 20 70 61 72 61 6d 65 74 | Another| paramet|
|00001ff0| 65 72 20 28 44 4f 5f 42 | 49 47 5f 58 52 45 46 3f |er (DO_B|IG_XREF?|
|00002000| 29 20 73 68 6f 75 6c 64 | 20 62 65 20 61 64 64 65 |) should| be adde|
|00002010| 64 20 74 68 61 74 20 6d | 61 6b 65 73 20 74 6c 63 |d that m|akes tlc|
|00002020| 2f 74 6c 70 0d 09 20 20 | 63 61 6c 6c 20 61 6c 74 |/tlp.. |call alt|
|00002030| 65 72 6e 61 74 65 20 73 | 79 6d 62 6f 6c 20 74 61 |ernate s|ymbol ta|
|00002040| 62 6c 65 20 72 6f 75 74 | 69 6e 65 73 20 74 68 61 |ble rout|ines tha|
|00002050| 74 20 64 6f 20 64 69 73 | 6b 20 49 2f 4f 2e 2e 0d |t do dis|k I/O...|
|00002060| 09 20 20 0d 09 36 3a 54 | 68 65 20 73 74 61 74 69 |. ..6:T|he stati|
|00002070| 73 74 69 63 73 20 6f 70 | 74 69 6f 6e 20 73 68 6f |stics op|tion sho|
|00002080| 75 6c 64 20 70 72 69 6e | 74 20 6f 75 74 20 6d 6f |uld prin|t out mo|
|00002090| 72 65 20 69 6e 74 65 72 | 65 73 74 69 6e 67 20 73 |re inter|esting s|
|000020a0| 74 75 66 66 20 73 6f 6d | 65 64 61 79 2e 2e 0d 09 |tuff som|eday....|
|000020b0| 20 20 28 76 31 2e 30 30 | 20 61 64 64 65 64 20 61 | (v1.00| added a|
|000020c0| 20 6c 69 73 74 20 6f 66 | 20 66 69 6c 65 20 6e 61 | list of| file na|
|000020d0| 6d 65 73 2e 2e 29 0d 09 | 0d 09 37 3a 54 68 65 20 |mes..)..|..7:The |
|000020e0| 4d 61 63 69 6e 74 6f 73 | 68 20 76 65 72 73 69 6f |Macintos|h versio|
|000020f0| 6e 20 73 68 6f 75 6c 64 | 20 62 65 20 6a 61 7a 7a |n should| be jazz|
|00002100| 65 64 20 75 70 20 77 69 | 74 68 20 68 65 61 70 2d |ed up wi|th heap-|
|00002110| 61 76 61 69 6c 20 64 69 | 73 70 6c 61 79 65 64 0d |avail di|splayed.|
|00002120| 09 20 20 65 76 65 72 79 | 20 6f 6e 63 65 20 69 6e |. every| once in|
|00002130| 20 61 77 68 69 6c 65 2c | 20 61 6e 64 20 69 74 20 | awhile,| and it |
|00002140| 6e 65 65 64 73 20 61 20 | 63 6f 6d 6d 61 6e 64 6f |needs a |commando|
|00002150| 20 69 6e 74 65 72 66 61 | 63 65 20 66 6f 72 20 75 | interfa|ce for u|
|00002160| 73 20 6c 61 7a 69 65 73 | 2c 0d 09 20 20 61 6e 64 |s lazies|,.. and|
|00002170| 20 74 68 65 20 74 69 6d | 65 2f 64 61 74 65 20 6e | the tim|e/date n|
|00002180| 65 65 64 20 74 6f 20 62 | 65 20 63 61 6c 6c 65 64 |eed to b|e called|
|00002190| 20 26 20 73 74 75 63 6b | 20 69 6e 74 6f 20 63 74 | & stuck| into ct|
|000021a0| 69 6d 65 5f 73 74 72 69 | 6e 67 20 69 6e 0d 09 20 |ime_stri|ng in.. |
|000021b0| 20 74 6c 63 2e 75 74 69 | 6c 2e 63 2e 0d 09 20 20 | tlc.uti|l.c... |
|000021c0| 28 68 65 61 70 41 76 61 | 69 6c 20 26 20 74 69 6d |(heapAva|il & tim|
|000021d0| 65 2f 64 61 74 65 20 77 | 61 73 20 6a 75 73 74 20 |e/date w|as just |
|000021e0| 66 69 78 65 64 20 69 6e | 20 30 2e 39 35 20 62 65 |fixed in| 0.95 be|
|000021f0| 74 61 2c 20 73 6f 20 3f | 3f 3f 20 6e 6f 20 6c 6f |ta, so ?|?? no lo|
|00002200| 6e 67 65 72 0d 09 20 20 | 61 70 70 65 61 72 73 20 |nger.. |appears |
|00002210| 66 6f 72 20 74 69 6d 65 | 2f 64 61 74 65 2e 29 0d |for time|/date.).|
|00002220| 0d 09 38 3a 41 6e 20 66 | 6f 70 65 6e 28 29 20 69 |..8:An f|open() i|
|00002230| 6e 20 4d 50 57 20 43 20 | 28 4d 61 63 69 6e 74 6f |n MPW C |(Macinto|
|00002240| 73 68 29 20 63 72 65 61 | 74 65 73 20 61 20 74 79 |sh) crea|tes a ty|
|00002250| 70 65 6c 65 73 73 2c 20 | 63 72 65 61 74 6f 72 6c |peless, |creatorl|
|00002260| 65 73 73 20 66 69 6c 65 | 0d 09 20 20 28 74 6f 20 |ess file|.. (to |
|00002270| 62 65 20 65 78 70 65 63 | 74 65 64 2c 20 72 65 61 |be expec|ted, rea|
|00002280| 6c 6c 79 29 20 77 68 69 | 63 68 20 6d 65 61 6e 73 |lly) whi|ch means|
|00002290| 20 74 68 65 20 6f 75 74 | 70 75 74 20 74 65 78 74 | the out|put text|
|000022a0| 20 66 69 6c 65 20 28 54 | 4c 43 2e 4f 55 54 29 0d | file (T|LC.OUT).|
|000022b0| 09 20 20 63 61 6e 6e 6f | 74 20 69 6d 6d 65 64 69 |. canno|t immedi|
|000022c0| 61 74 65 6c 79 20 62 65 | 20 72 65 61 64 20 62 79 |ately be| read by|
|000022d0| 20 61 6e 79 20 74 65 78 | 74 20 65 64 69 74 6f 72 | any tex|t editor|
|000022e0| 73 2e 20 20 49 20 63 6f | 75 6c 64 20 65 69 74 68 |s. I co|uld eith|
|000022f0| 65 72 3a 0d 09 09 31 2e | 20 6d 61 6b 65 20 54 4c |er:...1.| make TL|
|00002300| 43 20 20 77 72 69 74 65 | 20 74 6f 20 73 74 64 6f |C write| to stdo|
|00002310| 75 74 20 26 20 72 65 64 | 69 72 65 63 74 0d 09 09 |ut & red|irect...|
|00002320| 32 2e 20 74 65 6c 6c 20 | 75 73 65 72 73 20 74 6f |2. tell |users to|
|00002330| 20 74 79 70 65 20 22 73 | 65 74 66 69 6c 65 20 2d | type "s|etfile -|
|00002340| 74 20 54 45 58 54 20 2d | 63 20 27 4d 50 53 20 27 |t TEXT -|c 'MPS '|
|00002350| 20 74 6c 63 2e 6f 75 74 | 22 20 61 66 74 65 72 0d | tlc.out|" after.|
|00002360| 09 09 09 72 75 6e 6e 69 | 6e 67 20 54 4c 43 20 69 |...runni|ng TLC i|
|00002370| 6e 20 4d 50 57 2c 20 6f | 72 0d 09 09 33 2e 20 66 |n MPW, o|r...3. f|
|00002380| 69 6e 64 20 61 20 77 61 | 79 20 74 6f 20 73 65 74 |ind a wa|y to set|
|00002390| 20 74 68 65 20 54 59 50 | 45 20 6f 66 20 74 68 65 | the TYP|E of the|
|000023a0| 20 66 69 6c 65 20 69 6e | 73 69 64 65 20 54 4c 43 | file in|side TLC|
|000023b0| 2e 0d 09 20 20 43 20 70 | 75 72 69 73 74 73 20 77 |... C p|urists w|
|000023c0| 6f 75 6c 64 20 61 72 67 | 75 65 20 74 68 61 74 20 |ould arg|ue that |
|000023d0| 72 65 64 69 72 65 63 74 | 69 6e 67 20 74 6f 20 73 |redirect|ing to s|
|000023e0| 74 64 6f 75 74 20 69 73 | 20 74 68 65 20 77 61 79 |tdout is| the way|
|000023f0| 20 69 74 20 73 68 6f 75 | 6c 64 20 62 65 0d 09 20 | it shou|ld be.. |
|00002400| 20 64 6f 6e 65 2c 20 74 | 6f 20 77 68 69 63 68 20 | done, t|o which |
|00002410| 49 20 73 61 79 2c 20 22 | 79 65 61 68 2c 20 49 20 |I say, "|yeah, I |
|00002420| 73 68 6f 75 6c 64 20 68 | 61 76 65 20 6d 61 64 65 |should h|ave made|
|00002430| 20 69 74 20 74 68 61 74 | 20 77 61 79 20 69 6e 20 | it that| way in |
|00002440| 74 68 65 0d 09 20 20 62 | 65 67 69 6e 6e 69 6e 67 |the.. b|eginning|
|00002450| 2e 2e 22 20 20 49 74 20 | 64 6f 65 73 6e 27 74 20 |.." It |doesn't |
|00002460| 6c 6f 6f 6b 20 74 68 61 | 74 20 68 61 72 64 20 74 |look tha|t hard t|
|00002470| 6f 20 63 68 61 6e 67 65 | 2c 20 62 75 74 20 49 20 |o change|, but I |
|00002480| 61 6d 20 73 74 69 6c 6c | 0d 09 20 20 70 6f 6e 64 |am still|.. pond|
|00002490| 65 72 69 6e 67 20 74 68 | 65 20 72 61 6d 69 66 69 |ering th|e ramifi|
|000024a0| 63 61 74 69 6f 6e 73 2e | 2e 0d 0d 09 39 3a 54 4c |cations.|....9:TL|
|000024b0| 43 20 6b 6e 6f 77 73 20 | 77 68 61 74 20 61 20 66 |C knows |what a f|
|000024c0| 75 6e 63 74 69 6f 6e 20 | 64 65 63 6c 61 72 61 74 |unction |declarat|
|000024d0| 69 6f 6e 20 69 73 20 62 | 79 20 62 6c 69 6e 64 6c |ion is b|y blindl|
|000024e0| 79 20 64 65 63 69 64 69 | 6e 67 20 74 68 61 74 20 |y decidi|ng that |
|000024f0| 61 6e 79 0d 09 20 20 69 | 64 65 6e 74 69 66 69 65 |any.. i|dentifie|
|00002500| 72 20 66 6f 6c 6c 6f 77 | 65 64 20 62 79 20 61 6e |r follow|ed by an|
|00002510| 20 6f 70 65 6e 20 70 61 | 72 65 6e 20 28 74 68 61 | open pa|ren (tha|
|00002520| 74 20 69 73 20 6e 6f 74 | 20 61 20 23 64 65 66 69 |t is not| a #defi|
|00002530| 6e 65 20 6d 61 63 72 6f | 29 20 61 74 0d 09 20 20 |ne macro|) at.. |
|00002540| 62 6c 6f 63 6b 20 6c 65 | 76 65 6c 20 7a 65 72 6f |block le|vel zero|
|00002550| 20 69 73 20 61 20 66 75 | 6e 63 74 69 6f 6e 20 64 | is a fu|nction d|
|00002560| 65 63 6c 2e 20 20 54 68 | 69 73 20 77 6f 00 00 00 |ecl. Th|is wo...|
|00002570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002580| 43 72 65 61 74 65 20 28 | 6d 68 2e 6d 5f 6e 61 6d |Create (|mh.m_nam|
|00002590| 65 2c 20 30 2c 20 66 5f | 63 72 65 61 74 6f 72 2c |e, 0, f_|creator,|
|000025a0| 20 66 5f 74 79 70 65 29 | 3b 0d 23 65 6e 64 69 66 | f_type)|;.#endif|
|000025b0| 09 4d 50 57 0d 0d 09 77 | 68 69 6c 65 20 28 21 66 |.MPW...w|hile (!f|
|000025c0| 6f 75 6e 64 5f 63 72 63 | 20 26 26 20 66 67 65 74 |ound_crc| && fget|
|000025d0| 73 28 69 62 75 66 2c 20 | 42 55 46 53 49 5a 2c 20 |s(ibuf, |BUFSIZ, |
|000025e0| 69 66 70 29 20 21 3d 20 | 4e 55 4c 4c 29 20 7b 0d |ifp) != |NULL) {.|
|000025f0| 09 09 69 66 20 28 66 6f | 72 6b 73 20 3d 3d 20 30 |..if (fo|rks == 0|
|00002600| 20 26 26 20 73 74 72 6e | 63 6d 70 28 69 62 75 66 | && strn|cmp(ibuf|
|00002610| 2c 20 22 2a 2a 2a 43 4f | 4d 50 52 45 53 53 45 44 |, "***CO|MPRESSED|
|00002620| 22 2c 20 31 33 29 20 3d | 3d 20 30 29 20 7b 0d 09 |", 13) =|= 0) {..|
|00002630| 09 09 63 6f 6d 70 72 65 | 73 73 65 64 2b 2b 3b 0d |..compre|ssed++;.|
|00002640| 09 09 09 63 6f 6e 74 69 | 6e 75 65 3b 0d 09 09 7d |...conti|nue;...}|
|00002650| 0d 09 09 69 66 20 28 73 | 74 72 6e 63 6d 70 28 69 |...if (s|trncmp(i|
|00002660| 62 75 66 2c 20 22 2a 2a | 2a 44 41 54 41 22 2c 20 |buf, "**|*DATA", |
|00002670| 37 29 20 3d 3d 20 30 29 | 20 7b 0d 09 09 09 6d 68 |7) == 0)| {....mh|
|00002680| 2e 6d 5f 64 61 74 61 6c | 65 6e 20 3d 20 6d 61 6b |.m_datal|en = mak|
|00002690| 65 5f 66 69 6c 65 28 66 | 69 6c 65 73 2e 66 5f 64 |e_file(f|iles.f_d|
|000026a0| 61 74 61 2c 20 63 6f 6d | 70 72 65 73 73 65 64 29 |ata, com|pressed)|
|000026b0| 3b 0d 09 09 09 66 6f 72 | 6b 73 2b 2b 3b 0d 09 09 |;....for|ks++;...|
|000026c0| 09 63 6f 6e 74 69 6e 75 | 65 3b 0d 09 09 7d 0d 09 |.continu|e;...}..|
|000026d0| 09 69 66 20 28 73 74 72 | 6e 63 6d 70 28 69 62 75 |.if (str|ncmp(ibu|
|000026e0| 66 2c 20 22 2a 2a 2a 52 | 45 53 4f 55 52 43 45 22 |f, "***R|ESOURCE"|
|000026f0| 2c 20 31 31 29 20 3d 3d | 20 30 29 20 7b 0d 00 00 |, 11) ==| 0) {...|
+--------+-------------------------+-------------------------+--------+--------+